/// 注意，务必在pubspec.yaml中先加入思源黑体，此为默认字体
part of "../basic.dart";

const String family = "思源黑体";

class FONT {
  static const dingmao = TextStyle(
    fontFamily: "丁卯点阵体",
    fontSize: 20,
    letterSpacing: 3,
    height: 1.4,
  );

  static const dingmaoBig = TextStyle(
    fontFamily: "丁卯点阵体",
    fontSize: 28,
    height: 1.4,
  );
}

/// 通常用于大段文字
TextStyle styleSmall = TextStyle(
  fontFamily: family,
  fontSize: 13,
  fontWeight: Platform.isMacOS ? FontWeight.w300 : FontWeight.w400,
  letterSpacing: 1,
  color: COLOR.greyLight,
  height: 1.8,
);

TextStyle styleFangSong = TextStyle(
  fontFamily: "坊宋",

  /// 手机端文字有点太小
  fontSize: Platform.isMacOS ? 17 : 18,
  color: COLOR.greyLight,
  letterSpacing: 1,
  height: 1.5,
);

// 比如用于副标题、按钮文字等，就是比正文大一号的字体
TextStyle styleMedium = TextStyle(
  fontFamily: "思源黑体",
  fontWeight: Platform.isMacOS ? FontWeight.w300 : FontWeight.w400,
  fontSize: 17,
  letterSpacing: 1,
  color: COLOR.greyLight,
);
TextStyle styleMediumBold = styleMedium.copyWith(fontWeight: FontWeight.w500);

/// 通常用于标题、大字体
TextStyle styleLarge = TextStyle(
  fontFamily: "思源黑体",

  /// 很奇怪的一点，是当在5.5英寸中显示的文字不太符合预期
  fontWeight: Platform.isMacOS ? FontWeight.w500 : FontWeight.w600,
  fontSize: 30,
  letterSpacing: -1,
  color: COLOR.greyLight,
);
